﻿using STT.Layer.Connection;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace STT.Profile.UserControlsGV
{
    public partial class UcTimKiem : System.Web.UI.UserControl
    {
        ToolBox tb = new ToolBox();
        public string tukhoa2 = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dt = tb.GetDataTableById5("TbGiangVien_SearchByHV", Session["MaFgv"].ToString(), Request.QueryString.Get("key"));
            tukhoa2 = Request.QueryString.Get("key");
            if (dt.Rows.Count > 0)
            {
                //ddltkhv.DataSource = dt;
                //ddltkhv.DataBind();
                cpl.PageSize = 8;
                cpl.DataSource = dt.DefaultView;
                cpl.BindToControl = ddltkhv;
                ddltkhv.DataSource = cpl.DataSourcePaged;
                ddltkhv.DataBind();
            }
            else
                lblthongbao.Visible = true;
        }
    }
}